package com.hhu.wangzb.server.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hhu.wangzb.common.utils.PageUtils;
import com.hhu.wangzb.common.utils.Query;

import com.hhu.wangzb.server.dao.UnitDictionaryDao;
import com.hhu.wangzb.common.entity.UnitDictionaryEntity;
import com.hhu.wangzb.server.service.UnitDictionaryService;


@Service("unitDictionaryService")
public class UnitDictionaryServiceImpl extends ServiceImpl<UnitDictionaryDao, UnitDictionaryEntity> implements UnitDictionaryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UnitDictionaryEntity> page = this.page(
                new Query<UnitDictionaryEntity>().getPage(params),
                new QueryWrapper<UnitDictionaryEntity>()
        );

        return new PageUtils(page);
    }

}